<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<script type="text/javascript">

function* fibs() {
	var a = 0;
	var b = 1;
	while(true) {
		yield a;
		[a, b] = [b, a + b];
	}
}

var [first, second, third, fourth, fifth, sixth] = fibs();
console.error("first =" + first);
console.error("second = " + second);
console.error("third = " + third);
console.error("fourth = " + fourth);
console.error("fifth = " + fifth);
console.error("sixth = " + sixth);

</script>

</body>
</html>